package com.example.demo.server;

import com.example.demo2.JieKouShiTi2.UserMapper;
import com.example.demo2.JieKouShiTi2.UserServiceJieKou;
import com.example.demo2.ShiTi2.User;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class UserService implements UserServiceJieKou {

    @Autowired
    private UserMapper userMapper;

    @Override
    public User getUserByAuthor(String author) {
        return userMapper.getUserByAuthor(author);
    }
}